import { IDoctor, IDoctorList } from '@/types/doctor.type'
import axios from '@/utils/request'

// /doctor/list_doctor
export const listDoctorReq = (page: number, size: number) => axios.get<IDoctorList[]>('/doctor/list_doctor', {
    params: {
        page, size
    }
})


// /users/getbyid
export const getbyidReq = (id: number) => axios.get<IDoctor[]>('/users/getbyid', { params: { id } })

// /doctor/get_dn_dayline

export const get_dn_daylineReq = (id: number) => axios.get<any>('/doctor/get_dn_dayline', { params: { id } })

// /doctor/edit_dn_dayline
export const edit_dn_daylineReq = (data: any) => axios.post('/doctor/edit_dn_dayline', data)